import 'package:flutter_douban/model/class_intros_model.dart';
import 'package:flutter_douban/model/note_model.dart';
import 'package:flutter_douban/model/user_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'class_detail_son_model.g.dart';


@JsonSerializable()
class ClassDetailSonModel {

  /// id
  String? id;
  /// 描述
  String? t;
  /// p
  String? p;
  /// 图片
  String? i;
  /// 日期
  String? d;
  /// 学习人数
  String? sales;
  /// 作者名字
  String? un;
  /// 作者图片
  String? ua;
  /// 作者信息
  UserModel? anchor;
  /// 轮播图数组
  // List<String> is;
  /// 图片宽度
  int? iw;
  /// 图片高度
  int? ih;
  /// 作者描述
  String? ui;
  /// 课程价钱
  String? lp;
  /// 课程简介
  List<ClassIntrosModel> intros;
  /// 评分
  String? rate;
  /// 评分人数
  int? rate_count;
  /// 豆瓣课堂
  String? brand_description;
  String? scc;
  /// 时间
  String? ct;
  String? action_url;
  String? action;
  String? sid;
  String? notes_text;
  String? share_url;
  String? formula_text;
  String? formula_icon;
  String? formula_url;
  /// 豆果课堂图标
  String? brand_icon;
  /// 课程笔记
  List<NoteModel>? notes;

  ClassDetailSonModel(this.un,this.t,this.formula_text,this.ct,this.action_url,this.action,this.brand_description,this.i,
      this.anchor,this.scc,this.id,this.d,this.p,this.sales,this.ua,this.brand_icon,this.formula_icon,this.formula_url,
      this.ih,this.intros,this.iw,this.lp,this.notes,this.notes_text,this.rate,this.rate_count,this.share_url,this.sid,
      this.ui);
  factory ClassDetailSonModel.fromJson(Map<String,dynamic> json) => _$ClassDetailSonModelFromJson(json);
  Map<String, dynamic> toJson() => _$ClassDetailSonModelToJson(this);

}

